package com.sakura.system.service.impl.uploadimpl;


import com.sakura.system.dao.uploaddao.SrWebFileimageDAO;
import com.sakura.system.entity.upload.SrWebFileimage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.transaction.Transactional;
import java.util.Date;

@Service
@Transactional
@Slf4j
public class SrWebFileImageServiceImpl {

    @Autowired
    private SrWebFileimageDAO dao;
    @Autowired
    private HttpServletRequest request;

    public Integer save(Long id, SrWebFileimage obj){
        obj.setIsdel(false);
        obj.setCreatetime(new Date());
        obj.setUpdatetime(new Date());
        Integer insert = dao.insert(obj);
        return insert;
    }

//    public SrWebFileimage page(Integer rp,Integer pageSize){
////        dao.selectList()
////    }


}
